package compiler


import "binchunk"
import "compiler/codegen"
import "compiler/parser"


func Compile(chunk, chunkName string) *binchunk.Prototype {
	ast := parser.Parse(chunk, chunkName)
	return codegen.GenProto(ast)
}